﻿@model  RIS.TMP.WEB.APP.Models.UserLogin
@{
    ViewBag.Title = "ระบบบริหารจัดการงานซ่อมแซมและซ่อมบำรุง";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm("Login", "Home", FormMethod.Post))
{
    @Html.AntiForgeryToken()
     @Html.ValidationSummary(true)
    if (@ViewBag.Message != null)
    {
        <div class="alert alert-danger" role="alert">
            @ViewBag.Message
        </div>
    }
    <div id="loginModal" class="modal show" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog">
  <div class="modal-content">
      <div class="modal-header">
          <div align="center"><img src="~/Images/LOGO.gif"></div>
          <h4 class="text-center">ระบบบริหารจัดการงานซ่อมแซมและซ่อมบำรุง</h4>
      </div>
      <div class="modal-body">
          <form class="form col-md-12 center-block">
            <div class="form-group">
                <div class="form-label">
                    @Html.LabelFor(a => a.User)
                </div>
                <div class="form">
                    @Html.TextBoxFor(a => a.User, new { @class="form-control input-lg" })
                    @Html.ValidationMessageFor(a => a.User)
                </div>
            </div>
            <div class="form-group">
                @Html.PasswordFor(a => a.Password, new { @class = "form-control input-lg" })
                @Html.ValidationMessageFor(a => a.Password)
            </div>
            <div class="form-group">
                <input class="btn btn-primary btn-lg btn-block" type="submit" value="Login" />
            </div>
          </form>
      </div>
  </div>
  </div>
</div>
}


@section Scripts{
    @Scripts.Render("~/bundles/jqueryval")
}